package com.company.cloud.coupon.constant;

import com.company.cloud.common.constant.ReturnCodeEnum;


/**
 * 运营优惠券错误码定义
 * 业务错误码:4200-4299  参数错误码:4300-4399
 * */
public enum CouponErrorEnum implements ReturnCodeEnum {

	Coupon_UpperLower("4300","上架信息不能操作"),
	Coupon_FullFund("4301","优惠券使用门槛金额不能为空"),
	Coupon_UsableObj("4302","优惠券指定使用商品不能为空"),
	Coupon_UseDateNull("4303","优惠券使用日期不能为空"),
	
	Coupon_Null("4310","优惠券不存在"),
	Coupon_Use("4311","优惠券已使用"),
	Coupon_StartDate("4312","优惠券未到使用日期"),
	Coupon_EndDate("4313","优惠券已过期"),
	Coupon_NotUse("4314","优惠券不符合使用条件"),
	Coupon_State_Not_Op("4314","优惠券状态不支持此操作"),
	
	
	CouponFission_Verdue("4315","优惠券过期"),
	CouponFission_GiveEnd("4316","优惠券已领取完毕"),
	CouponFission_GiveNum("4317","优惠券已领取"),
	
	;
	private String code;
	private String msg;
	CouponErrorEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}

}